<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>简单布局练习</title>
		<style type="text/css">
			/*清除默认样式*/
			*{
				margin: 0;
				padding: 0;
			}
			
			/*设置头部div*/
			.header{
				width: 1000px;
				height: 100px;
				background-color: #BBFFAA;
				/*设置居中*/
				margin: 0 auto;
			}
			
			/*设置content*/
			.content{
				width: 1000px;
				height: 400px;
				background-color: orange;
				/*设置居中*/
				margin: 10px auto;
			}
			
			/*设置content里面的内容*/
			.subContent1{
				width: 200px;
				height: 100%;
				background-color: blue;
				float: left;
			}
			.subContent2{
				width: 580px;
				height: 100%;
				background-color: red;
				float: left;
				margin: 0 10px;
			}
			.subContent3{
				width: 200px;
				height: 100%;
				background-color: blueviolet;
				float: left;
			}
			
			/*设置footer*/
			.footer{
				width: 1000px;
				height: 100px;
				background-color: yellowgreen;
				/*设置居中*/
				margin: 0 auto;
			}
			
		</style>
	</head>
	<body>
		<!-- 头部div -->
		<div class="header">
			
		</div>
		
		<!-- 主体内容div -->
		<div class="content">
			<!-- 左侧div -->
			<div class="subContent1">
				
			</div>
			<!-- 中间div -->
			<div class="subContent2">
				
			</div>
			<!-- 右侧div -->
			<div class="subContent3">
				
			</div>
		</div>
		
		<!-- 底部div -->
		<div class="footer">
			
		</div>
		
	</body>
</html>
